<div class="cttitle">
	Ranking

	<?php
	if(isset($_GET['search']))
	{
		$search = $_GET['search'];
	}
	else
	{
		$search = null;
	}

	echo '<form method="GET" action="?page=ranking" style="float:right; margin-top:-3px;">
			<input type="hidden" name="page" value="ranking">
			<input type="text" name="search" value="'.$search.'" placeholder="name">
			<input type="submit" value="Search" class="bsexy">
			</form>';
	
	?>
	<div style="float:right; margin-right:10px; font-size:16px;">
		<a href="?page=ranking&type=kd">K/D Ratio</a> - 
		<a href="?page=ranking&type=level">Level</a> - 
		<a href="?page=ranking&type=kill">Kills</a> - 
		<a href="?page=ranking&type=death">Deaths</a> - 
		<a href="?page=ranking&type=mission">Missions</a> - 
		<a href="?page=ranking&type=money">Money</a>
	</div>
</div>
<div class="content">
	<?php getRanking(); ?>
</div>